public class Zuoye5a {
    String qidong;
    String tingzhi;
    String mingdi;
    public void Zuoye5a(){
        if(qidong.equals("启动"))
            System.out.println("汽车已发动。");
        else if(tingzhi.equals("刹车"))
            System.out.println("汽车已停止。");
        else if(mingdi.equals("鸣笛"))
            System.out.println("喇叭已通电。");
        else
            System.out.println("操作错误。");
    }
}
